/*
 * @Author: zhengzhuang
 * @Date: 2020-07-24 10:35:17
 * @LastEditors: zhengzhuang
 * @LastEditTime: 2020-08-04 16:14:36
 * @Description: 行程订单信息
 * @FilePath: /C20Driver_1.0.0/lib/model/itinerary_order_info.dart
 */
class ItineraryOrderInfo {
  String orderId;
  String depCity;
  String depLongitude;
  String depLatitude;
  String depAre;
  String destCity;
  String destLongitude;
  String destLatitude;
  String destArea;
  String departureDate; // 出发时间
  String driverId;
  String createTime;
  String createId;
  String updateTime;
  String updateId;
  String orderType; // 订单类型 0010:快车 0030:顺风车 0040:城际
  num peopleNumber; // 乘坐人数
  String rideType;
  String estimatedPrice;
  String sumCost; // 订单价钱
  String
      status; //  订单状态 0000 :订单完成,已支付| 0010 :司机接单| 0015 :司机到达上车点| 0020 :接到乘客,行程中| 0030:行程结束,报价成功,等待支付| 0040:报价失败,不可支付| 0050:发起收款| 0060:订单取消;
  String driverName; // 司机名称
  String driverPhone; // 司机手机号
  String vehicleNo; // 司机车辆车牌号
  String brand; // 车辆品牌
  String vehicleType; // 车辆类型
  String vehicleColor; // 车辆颜色
  String carImg; // 车辆图片
  num orderQuantity; // 司机历史接单量
  String passengerHeadimgurl; // 用户头像
  String passengerName; // 用户姓名
  String passengerMobile; // 用户手机号
  String lastNum; // 用户手机号后四位
  String
      intercityStatus; // 城际订单状态  0040 去接乘客 0045 到达乘客约定地点	0055 等待乘客上车 0060 到达目的地
  String depTime;

  ItineraryOrderInfo(
      {this.orderId,
      this.depCity,
      this.depLongitude,
      this.depLatitude,
      this.depAre,
      this.destCity,
      this.destLongitude,
      this.destLatitude,
      this.destArea,
      this.departureDate,
      this.driverId,
      this.createTime,
      this.createId,
      this.updateTime,
      this.updateId,
      this.orderType,
      this.peopleNumber,
      this.rideType,
      this.estimatedPrice,
      this.sumCost,
      this.status,
      this.driverName,
      this.driverPhone,
      this.vehicleNo,
      this.brand,
      this.vehicleType,
      this.vehicleColor,
      this.carImg,
      this.orderQuantity,
      this.passengerHeadimgurl,
      this.passengerName,
      this.passengerMobile,
      this.lastNum,
      this.intercityStatus,
      this.depTime});

  ItineraryOrderInfo.fromJson(Map<String, dynamic> json) {
    orderId = json['order_id'];
    depCity = json['dep_city'];
    depLongitude = json['dep_longitude'];
    depLatitude = json['dep_latitude'];
    depAre = json['dep_are'];
    destCity = json['dest_city'];
    destLongitude = json['dest_longitude'];
    destLatitude = json['dest_latitude'];
    destArea = json['dest_area'];
    departureDate = json['departure_date'];
    driverId = json['driver_id'];
    createTime = json['create_time'];
    createId = json['create_id'];
    updateTime = json['update_time'];
    updateId = json['update_id'];
    orderType = json['order_type'];
    peopleNumber = json['people_number'];
    rideType = json['ride_type'];
    estimatedPrice = json['estimated_price'];
    sumCost = json['sum_cost'];
    status = json['status'];
    driverName = json['driver_name'];
    driverPhone = json['driver_phone'];
    vehicleNo = json['vehicle_no'];
    brand = json['brand'];
    vehicleType = json['vehicle_type'];
    vehicleColor = json['vehicle_color'];
    carImg = json['car_img'];
    orderQuantity = json['order_quantity'];
    passengerHeadimgurl = json['passenger_headimgurl'];
    passengerName = json['passenger_name'];
    passengerMobile = json['passenger_mobile'];
    lastNum = json['last_num'];
    intercityStatus = json['intercity_status'];
    depTime = json['dep_time'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['order_id'] = this.orderId;
    data['dep_city'] = this.depCity;
    data['dep_longitude'] = this.depLongitude;
    data['dep_latitude'] = this.depLatitude;
    data['dep_are'] = this.depAre;
    data['dest_city'] = this.destCity;
    data['dest_longitude'] = this.destLongitude;
    data['dest_latitude'] = this.destLatitude;
    data['dest_area'] = this.destArea;
    data['departure_date'] = this.departureDate;
    data['driver_id'] = this.driverId;
    data['create_time'] = this.createTime;
    data['create_id'] = this.createId;
    data['update_time'] = this.updateTime;
    data['update_id'] = this.updateId;
    data['order_type'] = this.orderType;
    data['people_number'] = this.peopleNumber;
    data['ride_type'] = this.rideType;
    data['estimated_price'] = this.estimatedPrice;
    data['sum_cost'] = this.sumCost;
    data['status'] = this.status;
    data['driver_name'] = this.driverName;
    data['driver_phone'] = this.driverPhone;
    data['vehicle_no'] = this.vehicleNo;
    data['brand'] = this.brand;
    data['vehicle_type'] = this.vehicleType;
    data['vehicle_color'] = this.vehicleColor;
    data['car_img'] = this.carImg;
    data['order_quantity'] = this.orderQuantity;
    data['passenger_headimgurl'] = this.passengerHeadimgurl;
    data['passenger_name'] = this.passengerName;
    data['passenger_mobile'] = this.passengerMobile;
    data['last_num'] = this.lastNum;
    data['intercity_status'] = this.intercityStatus;
    data['dep_time'] = this.depTime;
    return data;
  }
}
